package com.ssm.mapper;

import com.ssm.entity.Dept;
import com.ssm.entity.QueryObject;
import org.springframework.stereotype.Repository;

import javax.annotation.Resources;
import java.util.List;

@Repository
public interface DeptMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Dept record);

    int updateByPrimaryKey(Dept record);

    Dept selectByPrimaryKey(Long id);

    List<Dept> selectAll();

    /*用于分页的两个方法*/
    int selForCount(QueryObject queryObject);

    List<Dept> selForList(QueryObject queryObject);
}